{{include file="header.html"}}
<body>
	<div class="container">
		<!-- 步骤条 -->
		<div class="pic">
			<ul>
				<li class="success">
					<div class="home">
						<svg class="icon" aria-hidden="true">
							<use xlink:href="#icon-shixinduobianxing"></use>
						</svg>
						<p>1</p>
						<span>创建用户</span>
					</div>
				</li>
				<li class="success">
					<div class="home">
						<svg class="icon" aria-hidden="true">
							<use xlink:href="#icon-shixinduobianxing"></use>
						</svg>
						<p>2</p>
						<span>设置信息</span>
					</div>
				</li>
				<li>
					<div class="home">
						<svg class="icon" aria-hidden="true">
							<use xlink:href="#icon-shixinduobianxing"></use>
						</svg>
						<p>✔</p>
						<span>创建成功</span>
					</div>
				</li>
				<div class="clear"></div>
			</ul>
		</div>
		<!-- 切换内容整体 -->
		<div class="tab_main">
			<!-- 切换导航 -->
			<h2 class="person">{{if $type == '0'}}学生{{elseif $type == '1'}}老师{{/if}}个人信息</h2>
			<!-- 内容列表 -->
			<div class="cont cont_set">
				<form action="index.php?app=index" name="myform" method="post" class="ajaxSubmit" onsubmit="return false">

					<table border="1px">
						<tr>
							<td class="one">姓名</td>
							<td class="two"><input type="text" name="name" value=""></td>
							<td class="one">{{if $type == '0'}}班级{{elseif $type == '1'}}单位{{/if}}</td>
							<td class="two"><input type="text" name="params[class]" value=""></td>
							<td class="one">性别</td>
							<td class="two">
								<label for="man"><input type="radio" name="sex" id="man" value="0">男</label>
								<label for="woman"><input type="radio" checked="" name="sex" id="woman" value="1">女</label>
							</td>
						</tr>
						<tr>
							<td class="one">出生日期</td>
							<td class="two"><input type="text" name="params[birthdate]" value=""></td>
							<td class="one">身份证</td>
							<td class="two"><input type="text" name="params[identification]" value=""></td>
							<td class="one">民族</td>
							<td class="two"><input type="text" name="params[nation]" value=""></td>
						</tr>
						<tr>
							<td class="one">{{if $type == '0'}}学号{{elseif $type == '1'}}工号{{/if}}</td>
							<td class="two"><input type="text" name="params[number]" value=""></td>
							<td class="one">手机</td>
							<td class="two"><input type="text" name="params[mobile]" value=""></td>
							<td class="one">QQ</td>
							<td class="two"><input type="text" name="params[qq]" value=""></td>
						</tr>
						<tr>
							<td class="one">微信</td>
							<td class="two"><input type="text" name="params[weixin]" value=""></td>
							<td class="one">家庭住址</td>
							<td class="three" colspan="3"><input type="text" name="params[address]" value=""></td> 
						</tr>
						<tr>
							<td></td>
							<td class="one" colspan="5" style="width:100%;">
								<button id="next" onClick="login();">下一步</button>
							</td>
						</tr>
					</table>
					<input type="hidden" value="{{$type}}" name="type">
				</form>
			</div>
		</div>
	</div>
	<script>
	// $(function(){
	// 	// $("button").attr("disabled","false");

	// 	// 点击登录进行验证信息
	// 	$("input").blur(function(){
	// 		if($("input[name='name']").val()==""){
	// 			showNotice("用户名不能为空");
	// 			return false;
	// 		}
	// 		$("button").addClass("can");
	// 		$("button").removeAttr("disabled");
	// 	})		

	// 	$("button").click(function(){
	// 		$(".pic ul li").addClass("success");
	// 		alert("创建成功！");
	// 		document.location.href = "login.html";
	// 	})
	// })
	function login(){
	    var params = $("form").serialize();
	    $.post('{{"index.php?app=index&information"|URL}}',params,function(result){
	        if(result.statusCode=='200'){
	        	alert(result.message);
	   //      	var url = "{{$smarty.const.__PROJECT__}}"; 
				// document.location.href = url;//登录后跳转页面
	        }else if(result.statusCode=='300'){
	        	alert(result.message);
	   //      	$(".change_verify").trigger("click");
				// $(".verity").val("");
	        }
	    },'json');
	};
	</script>
</body>
</html>